import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 统计分析下所有查询类的报表接口文件
 * */

// 前纺班组工资月报表
export const spinReportFrontPlanGroupYieldTwoReportMonth = (params) => getRequest('/spinreport/front-plan-group-yield-two/report/month', params);
export const productionGroupProductionSalarySalaryMonth = (params) => getRequest('/production/group-production-salary/salary-month', params);

// 细纱班组工资月报表
export const spinReportAfterPlanGroupYieldReportMonth = (params) => getRequest('/spinreport/after-plan-group-yield/report/month', params);
export const spinReportProductionStatementGetList = (params) => getRequest('/spinreport/production/statement/getList', params);
// 锭子报告
export const spinReport = (params) => getRequest('/spinreport', params);
// 锭子报告-历史记录
export const spinReportGetWorestHistory = (params) => getRequest('/spinreport/getWorestHistory', params);

export const productionMachineShutdownRecordsPage = (params) => getRequest('/production/machine-shutdown-records/page', params);
export const productionMachineShutdownRecordsMachinePage = (params) => getRequest('/production/machine-shutdown-records/machine-page', params);
export const productionMachineShutdownRecordsMonitor = (params) => getRequest('/production/machine-shutdown-records/monitor', params);
export const productionMachineIneffectiveYieldRecordsMachinePage = (params) => getRequest('/production/machine-ineffective-yield-records/machine-page', params);
export const productionMachineIneffectiveYieldRecordsPage = (params) => getRequest('/production/machine-ineffective-yield-records/page', params);
export const productionMachineTonYarnEnergyPage = (params) => getRequest('/production/machine-ton-yarn-energy/page', params);
export const productionMachineTonYarnEnergyMachinePage = (params) => getRequest('/production/machine-ton-yarn-energy/machine-page', params);
export const productionMachineTonYarnEnergyMonitorPage = (params) => getRequest('/production/machine-ton-yarn-energy/monitor-page', params);
export const productionMachineTonYarnEnergyMonitorMachinePage = (params) => getRequest('/production/machine-ton-yarn-energy/monitor-machine-page', params);
export const productionPrdReportStatistics = (params) => getRequest('/production/prd-report/statistics', params);
export const productionPrdReportGetProcessData = (params) => getRequest('/production/prd-report/get-process-data', params);
export const productionPrdReportGetProcessDayData = (params) => getRequest('/production/prd-report/get-process-day-data', params);

export const productionSpunYarnOutputGetByDate = (params) => getRequest('/production/spun-yarn-output/get-by-date', params);
export const productionSpunYarnOutputSaveOrUpdateBatchData = (params) => postRequest('/production/spun-yarn-output/save-or-update-batch-data', params);

export const productionMachineShutdownRecordsStatistics = (params) => getRequest('/production/machine-shutdown-records/statistics', params);
export const productionMachineShutdownRecordsGet = (params) => getRequest('/production/machine-shutdown-records/get', params);
export const productionMachineShutdownRecordsUpdate = (params) => putRequest('/production/machine-shutdown-records/update', params);

export const productionMachineTonYarnEnergyStatistics = (params) => getRequest('/production/machine-ton-yarn-energy/statistics', params);
export const productionMachineTonYarnEnergyDoffStatistics = (params) => getRequest('/production/machine-ton-yarn-energy/doff-statistics', params);

export const productionSparkDetectionSparkPage = (params) => getRequest('/production/spark-detection/page', params);
export const productionSparkDetectionSparkDetails = (params) => getRequest('/production/spark-detection/spark-details', params);
export const productionCheckOutputReportPage = (params) => getRequest('/production/check-output-report/page', params);
export const productionPrdReportEmployeeOutputList = (params) => getRequest('/production/prd-report/employee-output-list', params);
export const productionPrdReportEmployeeOutputPage = (params) => getRequest('/production/prd-report/employee-output-page', params);
export const getMonthUpKeepMachineJobPage = (params) => getRequest('/production/process-output/dataList', params);
export const getMonthPageMaterialWeigh = (params) => postRequest('/production/material-weigh/month-report', params);

